<div class="block">
	<div class="block-title">
		<?php echo $_GET['month']?> 报表
	</div>
	<div class="block-body" style="width:auto;margin-top: -30px;">
		<?php 
		$this->widget('zii.widgets.grid.CGridView', array(
				'id' => 'history-grid',
				'dataProvider' => $dataProvider,
				'columns'=>array(
					array('name' => '月份', 'value' => '$_GET[month]'),
					array('name' => '加盟账号', 'value' => '$data->owner_id'),
					array('name' => '会员数', 'value' => '$data->joinmb'),
					array('name' => '首次订单数', 'value' => '$data->firstordernum'),
					array('name' => '首次订单总额', 'value' => '"\$".$data->firstorderamount'),
					array('name' => '佣金模式', 'value' => '$data->program'),
					array('name' => '佣金', 'value' => '"\$".$data->total_earn'),
					array('name' => '付款状态', 'value' => 'str_replace(array("1", "0"), array("已付", "未付"), $data->payment_status)')
				),
			));
		?>
	</div>
</div>